run-war

Purpose

Packages the current Grails application into a Web Application Archive (WAR) file and runs the application in a Tomcat container on port 8080.

Examples

grails run-war
grails run-war -https // with HTTPS
grails run-war -restart // restarts without rebuilding the war
grails prod run-war
grails -Dserver.port=8090 run-war

Description

Usage:

grails [env]* run-war

Arguments:

Supported system properties:

Fired Events:

This command will package Grails inside a WAR file and then run it with the installed container. Useful for quick deployment and/or testing. However, unlike run-app this command does not support reloading as a Grails WAR archive does not ship with Groovy sources, but only compiled byte code.